package quick.start.ui.widget;

import quick.start.ui.widget.ImageGetterAsyncTask.OnDrawableLoadCallback;
import android.graphics.drawable.Drawable;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.FragmentActivity;
import android.text.style.ClickableSpan;
import android.text.style.ImageSpan;
import android.view.View;
import android.widget.ImageView;

public class ClickableImageSpan extends ClickableSpan {

	private ImageSpan imageSpan;
	private FragmentActivity activity;
	
	public ClickableImageSpan(){
		super();
	}
	
	public ClickableImageSpan(ImageSpan span, FragmentActivity activity){
		super();
		this.imageSpan = span;
		this.activity = activity;
	}
	
	@Override
	public void onClick(View widget) {
		// TODO Auto-generated method stub

	}

	public static class ImageLightBoxFragment extends DialogFragment implements OnDrawableLoadCallback{
		
		private ImageSpan imageSpan;
		private ImageView imageView;
		
		public static ImageLightBoxFragment createInstance(ImageSpan span){
			return new ImageLightBoxFragment(span);
		}

		public ImageLightBoxFragment(ImageSpan span){
			super();
			this.imageSpan = span;
		}
		
		public ImageLightBoxFragment(){
			super();
		}
		
		@Override
		public void onDrawableLoadComplete(Drawable d) {
			// TODO Auto-generated method stub
			
		}
		
	}
}
